Data Setup
Contents
Data Setup#
PurpleAir and Government operated air quality monitors#
See find-pa-station.py, get-pa-data.py and reformate-gov.py for how I obtained and combined data in a single dataset.
Load python modules
[1]:
import context
import numpy as np
import pandas as pd
import xarray as xr
import geopandas as gpd
import plotly.express as px
import matplotlib.image as mpimg
import plotly.figure_factory as ff
from context import data_dir
******************************
context imported. Front of path:
/Users/rodell/krige-smoke
/Users/rodell/krige-smoke/docs/source
******************************
through /Users/rodell/krige-smoke/docs/source/context.py -- pha
Case Study.#
We will focus on July 2021, post heat dome with high fire activity in southern BC, SK, MD, and the PNW of the US.
[2]:
img = mpimg.imread(str(data_dir) + "/obs/worldview.jpeg")
fig = px.imshow(img)
fig.update_layout(margin=dict(l=10, r=10, t=30, b=30))
fig.show()